package com.sunlee.common.service.dao;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.sunlee.common.service.entity.CategoryEntity;
import com.sunlee.common.service.entity.ProductCategoryMappingEntity;
import com.sunlee.common.service.entity.ProductEntity;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

/**
 * 商品分类映射表
 */
@Mapper
public interface ProductCategoryMappingDao extends BaseMapper<ProductCategoryMappingEntity> {

    IPage<ProductEntity> pageRelatedByCid(@Param("page") IPage<ProductCategoryMappingEntity> page, @Param("id") long id, @Param("type") int type, @Param("pId") Long pId, @Param("title") String title);

    IPage<CategoryEntity> pageRelatedByPid(@Param("page") IPage<ProductCategoryMappingEntity> page, @Param("id") long id, @Param("type") int type);
}




